<template>
  <div>
    <h1>登录组件</h1>
    <button @click="login">登录</button>
  </div>
</template>
<script>
export default {
  methods: {
    login () { //登录
      localStorage.token = "sakdhfkashdkjfhsk"
    }
  },
}
</script>
<style lang="less">
</style>